<?php

namespace App\Contracts\Repositories;

use App\Models\ActivityDelivery\ActivityDelivery;
use App\Models\ActivityDelivery\ActivityDeliveryDetail;

interface ActivityDeliveryRepository
{
    /**
     * 新建投放
     * @param $activityDelivery
     * @return mixed
     */
    public function create(ActivityDelivery $activityDelivery);

    /**
     * 修改投放
     * @param $activityDelivery
     * @param $conditions
     * @return mixed
     */
    public function update($activityDelivery, $conditions);

    /**
     * 根据id查找
     * @param $id
     * @return mixed
     */
    public function getActivityDeliveryById($id);

    public function getActivityDeliveryAndDetailsById($id);

    public function createDeliveryAndDetail($activityDeliveryData);
}
